package com.video.util;

import com.video.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;


/**
 * @author maomao
 */
public class ShiroUtils {

    public static AccountProfile getProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }

}
